<template>
  <div
    :style="`width: ${width || '100%'}; height: ${height || '100%'}`"
    class="test part-item"
  >
    <CHeader1 :title="title" :icon="icon" />
    <div style="height: 100%; width: 100%;">
      <slot></slot>
    </div>
  </div>
</template>

<script>
import CHeader1 from './CHeader1.vue'

export default {
  name: 'LayerItem',
  props: ['title', 'icon', 'width', 'height'],
  components: { CHeader1 },
}
</script>

<style>
.part-item {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1.25rem;
}
</style>
